<template>
  <div>
    <input placeholder="Type to search..." v-model="search" />
    <v-treeview :data="data" :search="search" />
  </div>
</template>

<script setup>import { ref } from 'vue';
import VTreeview from 'v-treeview';
import 'v-treeview/dist/style.css';

const data = ref([
  { label: 'Node 1', children: [{ label: 'Child 1' }] },
  { label: 'Node 2' }
]);

const search = ref('');
</script>
